package cn.edu.sgu.www.mhxysy.service.xingshi;

import cn.edu.sgu.www.mhxysy.dto.xingshi.XingshiFulingDTO;
import cn.edu.sgu.www.mhxysy.entity.xingshi.XingshiFuling;
import cn.edu.sgu.www.mhxysy.vo.except.AttributeVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface XingshiFulingService {

	/**
	 * 添加星石附灵属性
	 * @param xingshiFulingDTO 星石附灵属性信息
	 */
	@Transactional(rollbackFor = Exception.class)
	void insert(XingshiFulingDTO xingshiFulingDTO);

	void deleteById(String id);

	/**
	 * 通过ID修改星石附灵属性
	 * @param xingshiFulingDTO 星石附灵属性信息
	 */
	@Transactional(rollbackFor = Exception.class)
	void updateById(XingshiFulingDTO xingshiFulingDTO);

	/**
	 * 通过星石ID查询星石附灵属性
	 * @param xingshiId 星石ID
	 * @return List<AttributeVO>
	 */
	List<AttributeVO> selectAttributes(String xingshiId);

	/**
	 * 通过星石ID查询星石附灵属性
	 * @param xingshiId 星石ID
	 * @return List<XingshiFuling>
	 */
	List<XingshiFuling> selectByXingshiId(String xingshiId);
}